function selectTypeByPage(params) {
  return $axios({
    'url': '/article/selectTypeByPage',
    'method': 'get',
    params
  })
}

function findAllArticleType() {
    return $axios({
        'url': '/article/findAllArticleType',
        'method': 'get'
    })
}


// 新增---添加用户
function addArticleType (params) {
  return $axios({
    url: '/article/addArticleType',
    method: 'post',
    data: { ...params }
  })
}

// 修改---添加用户
function updateArticleType (params) {
  return $axios({
    url: '/article/updateArticleType',
    method: 'put',
    data: { ...params }
  })
}

// 修改页面反查详情接口
function findArticleTypeById (id) {
  return $axios({
    url: `/article/findArticleTypeById?id=${id}`,
    method: 'get'
  })
}

// 删除用户
function deleteArticleType (id) {
  return $axios({
    url: `/article/deleteArticleType/${id}`,
    method: 'delete'
  })
}